package com.coreservlets.jsf.ss10;

import java.util.Locale;

import javax.faces.bean.ManagedBean;

@ManagedBean
public class UserPrefs 
{
	/**
	 * Return a random Locale object
	 */
	public Locale getRandomLocale()
	{
		if( Math.random() > 0.5 )
		{
			return( new Locale( "it" ) );
		}
		else
		{
			return( new Locale( "de" ) );
		}
	}
}
